package com.mr.qa.bo;

public class MoneyReport {
	private String loginName;
	private Integer userId;
	private Integer questionCount;
	private Integer answerCount;
	private Integer sharedFileCount;
	private Integer recommendCount;
	private Integer totalScore;
	private Integer totalAward;
	
	public MoneyReport(Integer userId) {
		super();
		this.userId = userId;
	}
	
	public MoneyReport(Integer userId, Integer questionCout, Integer answerCount, Integer sharedFileCount,
			Integer recommendCount) {
		super();
		this.userId = userId;
		this.questionCount = questionCout;
		this.answerCount = answerCount;
		this.sharedFileCount = sharedFileCount;
		this.recommendCount = recommendCount;
	}
	
	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getQuestionCount() {
		return questionCount;
	}

	public void setQuestionCount(Integer questionCount) {
		this.questionCount = questionCount;
	}

	public Integer getAnswerCount() {
		return answerCount;
	}

	public void setAnswerCount(Integer answerCount) {
		this.answerCount = answerCount;
	}

	public Integer getSharedFileCount() {
		return sharedFileCount;
	}

	public void setSharedFileCount(Integer sharedFileCount) {
		this.sharedFileCount = sharedFileCount;
	}

	public Integer getRecommendCount() {
		return recommendCount;
	}

	public void setRecommendCount(Integer recommendCount) {
		this.recommendCount = recommendCount;
	}

	public void setTotalScore(Integer totalScore) {
		this.totalScore = totalScore;
	}

	public Integer getTotalScore() {
		return totalScore;
	}

	public Integer getTotalAward() {
		return totalAward;
	}

	public void setTotalAward(Integer totalAward) {
		this.totalAward = totalAward;
	}

	public void calcuatePersonPoint(){
		calcuatePeriodPoint();
		totalScore += 10;
	}
	
	public void calcuatePeriodPoint(){
		totalScore = 5 * questionCount + 2 * answerCount + 10 * sharedFileCount + 20 * recommendCount;
	}
}
